
package com.miniapp.dto.form;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * 登录表单
 *
 * @author linyuchi
 * @since 2.0.0 2018-03-25
 */
public class MiniAppCreateDTO {


    private Long productId;
    private Long priceId;
    private String name ;

    @NotNull(message="所选产品不能为空")
    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    @NotNull(message="产品价格不能为空")
    public Long getPriceId() {
        return priceId;
    }

    public void setPriceId(Long priceId) {
        this.priceId = priceId;
    }

    @NotBlank(message="小程序名不能为空")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
